<script>
import FruitItem from "@/components/fruit-item.vue";

export default {
  name: "Fruit",
  components: {FruitItem},
  fruitList:[
    {
      'img':'https://img1.baidu.com/it/u=2017111140,454329493&fm=253&fmt=auto&app=138&f=JPEG?w=629&h=500',
      'title':'柠檬',
      'oldPrice':15,
      'price':8
    }
  ],
  data(){
    return{
      title:'Fruit'
    }
  },
  methods:{
    changTitle(){
      alert('hello 水果世纪')
    },

  }
}
</script>

<template>
<h1 @click="changTitle">hello {{ title }}</h1>
  <fruit-item/>
</template>

<style scoped>

</style>